package com.ecy.app.ecy_app_flutter;

import android.app.Activity;
import android.app.Application;
import android.content.Context;
import android.os.Bundle;
import android.util.Log;
import android.widget.Toast;

/**
 * 基础Application
 *
 * 
 *  2022/6/10
 */
public class BaseApplication extends Application {
    /**
     * 全局上下文
     */
    private static Context mApplicationContext;
    /**
     * 全局上下文
     */
    private Activity mActivity;

    public static Application mApplication ;


    @Override
    public void onCreate() {
        super.onCreate();
        mApplication = this;
        mApplicationContext = getApplicationContext();
        String md5=AppSigning.getMD5(mApplicationContext);
        Log.e("BaseApplication--md5", md5);
    }

    /**
     * 获取全局上下文
     */
    public static Context getContext() {
        return mApplicationContext;
    }

}
